package com.zheng.shop.rpc.api;

import com.alibaba.fastjson.JSONObject;
import com.zheng.common.base.BaseServiceMock;
import com.zheng.shop.common.exception.ShopException;
import com.zheng.shop.dao.mapper.ShopProductMapper;
import com.zheng.shop.dao.model.ShopProduct;

import java.util.List;
import java.util.Map;

/**
* 降级实现ShopProductService接口
* Created by shuzheng on 2017/11/7.
*/
public class ShopProductServiceMock extends BaseServiceMock<ShopProductMapper, ShopProduct> implements ShopProductService {
    @Override
    public List<Map<String, Object>> selectProductMapList(String search, String sort, String order, int offset, int limit, Integer categoryId) {
        return null;
    }

    @Override
    public int selectProductCount(String search, String sort, String order, int offset, int limit, Integer categoryId) {
        return 0;
    }

    @Override
    public boolean createProduct(JSONObject param) throws ShopException {
        return false;
    }

    @Override
    public boolean updateProduct(JSONObject param) throws ShopException {
        return false;
    }

    @Override
    public boolean deleteProduct() {
        return false;
    }

    @Override
    public Map<String, Object> selectProduct(Integer productId) {
        return null;
    }
}
